home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
mmpp010.zip
/
DB.HP_
/
DB.bin
Wrap
Text File
|
1995-01-27
|
1KB
|
53 lines
// CopyRight Maurizio Maccani 1995
#ifndef _DB
#define _DB
struct Pool {
UINT buffer[1020];
int pointer;
Pool *nextBuffer;
Pool *lastBuffer;
Pool *firstBuffer;
public:
void New();
void Destroy();
void *Get(int i);
};
class GenericElement {
public:
GenericElement *nextInChain;
GenericElement *previousInChain;
GenericElement *baseInChain;
GenericElement *firstInChildChain;
GenericElement *lastInChildChain;
int AddInChain(GenericElement *toAdd);
int AddInChildChain(GenericElement *toAdd);
GenericElement *FirstInChildChain();
GenericElement *LastInChildChain();
GenericElement *BaseInChain();
GenericElement *NextInChain();
GenericElement *PreviousInChain();
GenericElement *LastInChain();
void New();
void Copy(GenericElement *);
};
class ListElement : public GenericElement
{
char string[30];
int prefix;
BOOL init;
public:
void New(LPSTR, int);
int GetPrefix();
LPSTR GetValue();
BOOL IsFull();
void Copy(ListElement*);
};
class List {
public:
Pool startPool;
ListElement *base;
void New();
void Destroy();
};
#endif